package com.atguigu;

import com.atguigu.entity.Person;

import java.util.ArrayList;
import java.util.List;

public class Test03 {
	public static void main(String[] args) {
		//-Xms15m -Xmx15m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=c:\\tmp\\test03.hprof
		//堆内存溢出
		List<Person> list = new ArrayList<Person>();
		for(int i=0; i < 25; i ++){
			list.add(new Person());
		}
	}
}